<?php
error_reporting(E_ALL ^ E_NOTICE);

//Session start
session_start();

// Web name
define("_CONST_WEB_NAME", "TuPiao.Com");

// Web url
define("_CONST_WEB_URL", "http://www.tupiao.com/");

// Root path
define("_CONST_LOCAL_BASE_PATH", "C:/AppServ/www/tu-piao/web/");
// Include path
define("_CONST_LOCAL_INCLUDE_PATH", _CONST_LOCAL_BASE_PATH."includes/");
// Layout Path
define("_CONST_LOCAL_LAYOUT_PATH", _CONST_LOCAL_BASE_PATH."layout/");

// Backend url
define("_CONST_BACKEND_URL", _CONST_WEB_URL."backend/");

// Cache path
define("_CONST_CACHE_PATH", _CONST_LOCAL_BASE_PATH."cache/");
// Cache url
define("_CONST_CACHE_URL",  _CONST_WEB_URL."cache/");

// File upload path for loaction
define('_CONST_UPLOAD_PATH', "C:/AppServ/www/tu-piao/web/store/upload/");
// File upload web url
define('_CONST_UPLOAD_URL', "http://www.tupiao.com/store/upload/");
// Compress file path for loaction
define('_CONST_PIC_PATH',  "C:/AppServ/www/tu-piao/web/store/compress/");
// Compress file web url
define('_CONST_PIC_URL', "http://www.tupiao.com/store/compress/");

// Img file url
define("_CONST_IMG_URL", _CONST_WEB_URL."media/");
// Js file url
define("_CONST_JS_URL", _CONST_WEB_URL."media/js/");
// css file url
define("_CONST_CSS_URL", _CONST_WEB_URL."media/css/");

// Date format
define('_CONST_DATE_FORMAT', 'm-d-Y');
// Time format
define('_CONST_TIME_FORMAT', 'h:i A');
// Time zone
define('_CONST_TIME_ZONE',  "EDT");
// Time offset
define('_CONST_TIME_OFFSET',  8);
// Current time
define('_CONST_TIMENOW',  gmmktime() + 8 * 3600);

// Cookies
define('_CONST_COOKIE_PATH', '/');
define('_CONST_COOKIE_DOMAIN', ".tupiao.com");
define('_CONST_COOKIE_SECURE', 0);
define('_CONST_COOKIE_PREFIX',  'tp_');

// Datebase
$db_vars = array(
  'hostname' => 'localhost',
  'database' => 'tupiao',
  'username' => 'root',
  'password' => '111111',
);

$db_slave_vars = array(
  'hostname' => 'localhost',
  'database' => 'tupiao',
  'username' => 'root',
  'password' => '111111',
);

$memcache_vars = array(
  'host' => '127.0.0.1',
  'port' => '11211',

  'persistant' => 1
);

define('_CONST_VERSION',  '20111125');
?>